home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / RESTORE.HLP < prev    next >
Text File  |  1985-09-10  |  3KB  |  74 lines

  1. ----------------------  RESTORE - External DOS Command  ------------------------
  2.  
  3. RESTORE restores one or more files that were backed up with the BACKUP command
  4.    from diskettes to a fixed disk.
  5.  
  6. FORMAT:   RESTORE d1: [d2:][path][filename[.ext]][/S][/P]
  7.  
  8. REMARKS:
  9.  
  10.    d1:      - the drive that will contain the backup diskette(s).
  11.    d2:      - the fixed disk drive to which files will be restored.  If omitted,
  12.               the default drive is assumed.
  13.    path     - the directory path of the directory that will receive the
  14.               restored files.  If omitted, the current directory is assumed.
  15.    filename - the name of the file to be restored.  Global characters (* and ?)
  16.               are allowed.
  17.    .ext     - the filename extension of the file to be restored.  Global
  18.               characters (* and ?) are allowed.
  19.    /S       - specifies that files in the current directory and all other
  20.               subdirectories beyond it are to be restored.
  21.    /P       - prompts to ask if a file that has been changed since the last
  22.               backup or if a file designated "read only" should be restored.
  23.               You can then choose whether or not to restore the file.  Read-only
  24.               is a file attribute that can be set by programs interfacing
  25.               internally with DOS.  The hidden DOS system files are read-only.
  26.  
  27.    If filename and extension are omitted, then all files backed up from the
  28.    directory are restored.
  29.  
  30.    If you use global characters (* and ?) in the filename or extension, you will
  31.    be prompted to insert the next diskette after the files have been restored.
  32.  
  33.    Only files that have been backed up with the BACKUP command may be restored.
  34.    As RESTORE executes, you will be prompted to insert the backup diskettes in
  35.    order.  If you use /S to restore to a subdirectory and the subdirectory is
  36.    missing on the fixed disk, RESTORE will create it and restore the files.
  37.  
  38.    RESTORE sets the ERRORLEVEL variable (which can be tested in a batch file
  39.    with the Batch Subcommand IF) to one of the following:
  40.  
  41.       0 = normal completion           3 = terminated by user (Control-Break)
  42.       1 = no files found to restore   4 = terminated due to error
  43.  
  44.  
  45. WARNING:  When a file is restored to a directory that contains a file with the
  46.    same name, the contents of the existing file are replaced by the restored
  47.    file.
  48.  
  49.  
  50. EXAMPLES:
  51.  
  52. Restore all files from diskette in drive A to fixed disk drive C:
  53.  
  54.           RESTORE A: C:\ /S
  55.  
  56.  
  57. Restore file MYFILE from diskette in drive A to fixed disk drive C.  The file is
  58. to be restored to the BUDGET directory.  BUDGET is a subdirectory of the root
  59. directory:
  60.  
  61.           RESTORE A: C:\BUDGET\MYFILE
  62.  
  63.  
  64. Restore all files from diskette in drive A to the BUDGET subdirectory on fixed
  65. disk drive C.  BUDGET is a subdirectory of the root directory:
  66.  
  67.           RESTORE A: C:\BUDGET
  68.  
  69.  
  70. Restore all files from diskette in drive A to fixed disk drive C that have the
  71. filename extension of .DAT.  Restore these files to the current directory:
  72.  
  73.           RESTORE A: C:*.DAT
  74.